#include "app_mqtt.h"
#include <stdio.h>
#include <unistd.h>


static int app_mqtt_recv_callback( char *payload, int payload_len)
{
    printf("recv payload: %s\n", payload);
    return 0;
}
int main(int argc, char const *argv[])
{
    app_mqtt_init();
    app_mqtt_register_recv_callback(app_mqtt_recv_callback);
    app_mqtt_send("hello world",11);
    while (1)
    {
         sleep(1);
    }

    return 0;
}
